Example #1
0
        public void AssignField()
        {
            var testInstance = new TestExtractClass();

            Assert.That(testInstance.SomeField, Is.EqualTo(0));
            ObjectResolver.SetValue("SomeField", testInstance, 3);
            Assert.That(testInstance.SomeField, Is.EqualTo(3));
        }
Example #2
0
 public static int AGenericExtensionMethod <T>(this TestExtractClass testClass)
 {
     return(testClass.SomeField);
 }
Example #3
0
 public static int AnExtensionMethod(this TestExtractClass testClass)
 {
     return(testClass.SomeField);
 }