You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
910 B
40 lines
910 B
using NUnit.Framework;
|
|
|
|
namespace NzbDrone.Core.Test.Datastore.ReflectionStrategyFixture
|
|
{
|
|
[TestFixture]
|
|
public class Benchmarks
|
|
{
|
|
/* private const int iterations = 5000000;
|
|
private object _target;
|
|
private IReflectionStrategy _simpleReflectionStrategy;
|
|
|
|
[SetUp]
|
|
public void Setup()
|
|
{
|
|
// _simpleReflectionStrategy = new DelegateReflectionStrategy();
|
|
}
|
|
|
|
[Test]
|
|
public void clr_reflection_test()
|
|
{
|
|
_target = new Series();
|
|
|
|
var del = _simpleReflectionStrategy.BuildSetter(typeof(Series), "Title");
|
|
|
|
for (int i = 0; i < iterations; i++)
|
|
{
|
|
del(_target, "TestTile");
|
|
//_simpleReflectionStrategy.SetFieldValue(_target, "Title", "TestTile");
|
|
}
|
|
}
|
|
|
|
|
|
private void SetField()
|
|
{
|
|
|
|
|
|
}*/
|
|
|
|
}
|
|
} |