public void return_level_attribute_without_different_data_results_in_not_marked_as_modified() { var dectector = new MethodILChangeDetector(); Assert.IsFalse(dectector.AreDifferentIL(assembly.GetMethodDefinition <TestMethods>("HasReturnAttributeWithData"), assembly.GetMethodDefinition <TestMethods>("HasReturnAttributeWithData"))); }
public void paramter_level_attribute_with_different_data_results_in_marked_as_modified() { var dectector = new MethodILChangeDetector(); Assert.IsTrue(dectector.AreDifferentIL(assembly.GetMethodDefinition <TestMethods>("HasParameterAttributeWithData"), assembly.GetMethodDefinition <TestMethods>("HasParameterAttributeWithDifferentData"))); }
public void return_level_attribute_remove_results_in_marked_as_modified() { var dectector = new MethodILChangeDetector(); Assert.IsTrue(dectector.AreDifferentIL(assembly.GetMethodDefinition <TestMethods>("HasReturnAttribute"), assembly.GetMethodDefinition <TestMethods>("HasNoReturnAttribute"))); }
public void parameter_level_attribute_on_both_results_in_not_marked_as_modified() { var dectector = new MethodILChangeDetector(); Assert.IsFalse(dectector.AreDifferentIL(assembly.GetMethodDefinition <TestMethods>("HasParameterAttribute"), assembly.GetMethodDefinition <TestMethods>("HasParameterAttribute"))); }
public void methods_that_are_different_show_up_as_different() { var dectector = new MethodILChangeDetector(); Assert.IsTrue(dectector.AreDifferentIL(assembly.GetMethodDefinition <TestMethods>("Instance1"), assembly.GetMethodDefinition <TestMethods>("Instance2"))); }
public void methods_that_only_have_different_string_data_are_different() { var dectector = new MethodILChangeDetector(); Assert.IsTrue(dectector.AreDifferentIL(assembly.GetMethodDefinition<TestMethods>("Instance2"), assembly.GetMethodDefinition<TestMethods>("StringDifferentAsInstance2"))); }
public void methods_that_are_the_same_are_not_different() { var dectector = new MethodILChangeDetector(); Assert.IsFalse(dectector.AreDifferentIL(assembly.GetMethodDefinition<TestMethods>("Instance2"), assembly.GetMethodDefinition<TestMethods>("SameAsInstance2"))); }
public void methods_that_are_different_show_up_as_different() { var dectector = new MethodILChangeDetector(); Assert.IsTrue(dectector.AreDifferentIL(assembly.GetMethodDefinition<TestMethods>("Instance1"), assembly.GetMethodDefinition<TestMethods>("Instance2"))); }