public void IsIgnored_GetMethodInIterfaceIsGeneratedByProperty_IsIgnoredTrue() { var method = GetMethod(typeof(SomeInterface), "get_B"); var isIgnoredPropertyGeneratedMethod = DocUtils.IsIgnored(method); Assert.IsTrue(isIgnoredPropertyGeneratedMethod); }
public void IsIgnored_SetMethodIsGeneratedByProperty_IsIgnoredTrue() { var method = GetMethod(typeof(SomeClass), "set_" + nameof(SomeClass.Property4)); var isIgnoredPropertyGeneratedMethod = DocUtils.IsIgnored(method); Assert.IsTrue(isIgnoredPropertyGeneratedMethod); }
public void IsIgnored_GetMethodIsNotGeneratedByProperty_IsIgnoredFalse() { var method = GetMethod(typeof(SomeClass), nameof(SomeClass.get_Method)); var isIgnoredPropertyGeneratedMethod = DocUtils.IsIgnored(method); Assert.False(isIgnoredPropertyGeneratedMethod); }
public void IsIgnored_GetMethodIsNotGeneratedByProperty_IsIgnoredFalse() { var method = GetMethod(typeof(Functions), nameof(Functions.get_function)); var isIgnoredPropertyGeneratedMethod = DocUtils.IsIgnored(method); Assert.IsFalse(isIgnoredPropertyGeneratedMethod); }
public void IsIgnored_GetMethodIsGeneratedByProperty2_IsIgnoredTrue() { var method = GetMethod(typeof(DiscriminatedUnions.SizeUnion), "get_" + nameof(DiscriminatedUnions.SizeUnion.Large)); var isIgnoredPropertyGeneratedMethod = DocUtils.IsIgnored(method); Assert.IsTrue(isIgnoredPropertyGeneratedMethod); }
public void IsIgnored_GetMethodIsGeneratedByProperty_IsIgnoredTrue() { var method = GetMethod(typeof(DiscriminatedUnions.Shape.Circle), "get_" + nameof(DiscriminatedUnions.Shape.Circle.radius)); var isIgnoredPropertyGeneratedMethod = DocUtils.IsIgnored(method); Assert.IsTrue(isIgnoredPropertyGeneratedMethod); }
public void IsIgnored_PutMethodIsGeneratedByProperty_IsIgnoredTrue() { var classWithProperties = GetType(UWPTestComponentWinMD, "mdoc.Test.UWP.TestComponent.UwpClassWithProperties"); var method = GetMethod(classWithProperties, i => i.Name == "put_MyReadWriteProperty"); var isIgnoredPropertyGeneratedMethod = DocUtils.IsIgnored(method); Assert.IsTrue(isIgnoredPropertyGeneratedMethod); }