public void TestCorrectNamespaces() { NamespacesArePascalCased namespacesArePascalCased = new NamespacesArePascalCased(); Assertion.AssertNull("Empty Namespace", namespacesArePascalCased.Check("", null)); Assertion.AssertNull("Single Namespace", namespacesArePascalCased.Check("MyNamespace", null)); Assertion.AssertNull("Complex Namespace", namespacesArePascalCased.Check("System.Windows.Form", null)); }
public void TestIncorrectAttribute() { NamespacesArePascalCased namespacesArePascalCased = new NamespacesArePascalCased(); Assertion.AssertNotNull(namespacesArePascalCased.Check("a", null)); Assertion.AssertNotNull(namespacesArePascalCased.Check("A.Namespace.isWrong", null)); Assertion.AssertNotNull(namespacesArePascalCased.Check("System.windows.Form", null)); }