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(" ")); }
public void TestUrlActionWithWhiteSpaceCtorParameter() { UrlAction.Create(" "); }
public void TestUrlActionWithEmptyCtorParameter() { UrlAction.Create(""); }
public void TestUrlActionWithNullCtorParameter() { UrlAction.Create(null); }