Lidarr/NzbDrone.Core.Test/Datastore/ReflectionStrategyFixture/Benchmarks.cs

40 lines
910 B
C#
Raw Normal View History

2013-07-19 03:47:55 +00:00
using NUnit.Framework;
2013-06-03 03:22:47 +00:00
namespace NzbDrone.Core.Test.Datastore.ReflectionStrategyFixture
{
[TestFixture]
public class Benchmarks
{
2013-06-03 03:25:26 +00:00
/* private const int iterations = 5000000;
2013-06-03 03:22:47 +00:00
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()
{
2013-06-03 03:25:26 +00:00
}*/
2013-06-03 03:22:47 +00:00
}
}