public HasFeature ( string strFeature, string strVersion ) : bool | ||
strFeature | string | |
strVersion | string | |
Результат | bool |
public static void HasFeatureReturnsTrueForSupportedVersion() { var target = new XmlImplementation(); Assert.True(target.HasFeature(SupportedFeature, null)); Assert.True(target.HasFeature(SupportedFeature, "1.0")); Assert.True(target.HasFeature(SupportedFeature, "2.0")); }
public static void HasFeatureReturnsTrueForSupportedFeature() { var target = new XmlImplementation(); // verify that it's also case-insensitive Assert.True(target.HasFeature(SupportedFeature.ToUpper(), null)); Assert.True(target.HasFeature(SupportedFeature.ToLower(), null)); }
public static void TestForFeatureSome() { var imp = new XmlImplementation(); Assert.False(imp.HasFeature("some", "1.0")); Assert.False(imp.HasFeature("some", "2.0")); Assert.False(imp.HasFeature("some", "3.0")); }
public static void HasFeatureReturnsFalseForUnsupportedVersion() { var target = new XmlImplementation(); Assert.False(target.HasFeature(SupportedFeature, "1.2")); }
public static void HasFeatureReturnsFalseForUnsupportedFeature() { var target = new XmlImplementation(); Assert.False(target.HasFeature("Unsupported", null)); }