public void TestUrlActionEquality()
        {
            UrlAction action1 = UrlAction.Create("action 1");
            UrlAction action2 = UrlAction.Create("ACTION 1");
            UrlAction action3 = UrlAction.Create("action 3");

            Assert.IsTrue(action1.Equals(action2));
            Assert.IsFalse(action1.Equals(action3));
            Assert.IsFalse(action1.Equals(null));
        }
 public void TestUrlActionWithNullCtorParameter()
 {
     Assert.ThrowsException <ArgumentNullException>(() => UrlAction.Create(null));
 }
 public void TestUrlActionWithWhiteSpaceCtorParameter()
 {
     Assert.ThrowsException <ArgumentException>(() => UrlAction.Create(" "));
 }
예제 #4
0
 public void TestUrlActionWithWhiteSpaceCtorParameter()
 {
     UrlAction.Create(" ");
 }
예제 #5
0
 public void TestUrlActionWithEmptyCtorParameter()
 {
     UrlAction.Create("");
 }
예제 #6
0
 public void TestUrlActionWithNullCtorParameter()
 {
     UrlAction.Create(null);
 }