public void TestCorrectNamespaces()
 {
     NamespacesDoNotContainUnderscores rule = new NamespacesDoNotContainUnderscores();
     Assertion.AssertNull("Empty Namespace", rule.Check("", null));
     Assertion.AssertNull("Single Namespace", rule.Check("MyNamespace", null));
     Assertion.AssertNull("Complex Namespace", rule.Check("System.Windows.Form", null));
 }
 public void TestIncorrectNamespaces()
 {
     NamespacesDoNotContainUnderscores rule = new NamespacesDoNotContainUnderscores();
     Assertion.AssertNotNull(rule.Check("_", null));
     Assertion.AssertNotNull(rule.Check("A.Namespace.isWrong_", null));
     Assertion.AssertNotNull(rule.Check("System._Windows.Form", null));
 }