public void Test_NotEqual_DiffName() { UIDef uiDef = new UIDef("DDD", null, null); UIDef uiDef2 = new UIDef("DDD_1", null, null); Assert.IsFalse(uiDef.Equals(uiDef2)); Assert.IsFalse(uiDef == uiDef2); Assert.IsTrue(uiDef != uiDef2); }
public void Test_NotEqualsNull() { UIDef uiDef = new UIDef("", null, null); UIDef uiDef2 = null; Assert.IsFalse(uiDef.Equals(uiDef2)); Assert.IsFalse(uiDef == uiDef2); Assert.IsTrue(uiDef != uiDef2); Assert.AreNotEqual(uiDef, uiDef2); }
public void Test_EqualHasTheSameUIForm() { UIForm uiForm = GetUiForm(); UIDef uiDef = new UIDef("DDD", uiForm, null); UIDef uiDef2 = new UIDef("DDD", uiForm, null); Assert.IsTrue(uiDef.Equals(uiDef2)); Assert.IsTrue(uiDef == uiDef2); Assert.IsFalse(uiDef != uiDef2); }
public void Test_NotEqual_OtherType() { //---------------Set up test pack------------------- UIDef uiDef = new UIDef("", null, null); //--------------Assert PreConditions---------------- //---------------Execute Test ---------------------- Assert.IsFalse(uiDef.Equals("BNLJ JOLJ")); //---------------Test Result ----------------------- //---------------Tear Down ------------------------- }
public void TestCloneUIFormNull() { //---------------Set up test pack------------------- UIDef uiDef = new UIDef("Name", null, GetUiGrid()); //--------------Assert PreConditions---------------- //---------------Execute Test ---------------------- IUIDef clonedDef = uiDef.Clone(); //---------------Test Result ----------------------- Assert.IsTrue(uiDef == (UIDef)clonedDef); Assert.IsTrue(uiDef.Equals(clonedDef)); Assert.AreNotSame(uiDef, clonedDef); Assert.AreSame(null, clonedDef.UIForm); Assert.AreNotSame(uiDef.UIGrid, clonedDef.UIGrid); //---------------Tear Down ------------------------- }
public void TestCloneUIDef() { //---------------Set up test pack------------------- UIForm uiForm = GetUiForm(); UIGrid uiGrid = GetUiGrid(); UIDef uiDef = new UIDef("Name", uiForm, uiGrid); //---------------Execute Test ---------------------- IUIDef clonedDef = uiDef.Clone(); //---------------Test Result ----------------------- Assert.IsTrue(uiDef == (UIDef)clonedDef); Assert.IsTrue(uiDef.Equals(clonedDef)); Assert.AreNotSame(uiDef, clonedDef); Assert.AreNotSame(uiDef.UIForm, clonedDef.UIForm); Assert.AreNotSame(uiDef.UIGrid, clonedDef.UIGrid); }
public void Test_NotEqual_UIFormDifferent() { //---------------Set up test pack------------------- UIForm uiForm = GetUiForm(); UIDef uiDef = new UIDef("DDD", uiForm, null); UIDef uiDef2 = new UIDef("DDD", null, null); //--------------Assert PreConditions---------------- //---------------Execute Test ---------------------- //---------------Test Result ----------------------- Assert.IsFalse(uiDef.Equals(uiDef2)); Assert.IsFalse(uiDef == uiDef2); Assert.IsTrue(uiDef != uiDef2); //---------------Tear Down ------------------------- }
private static void AssertNotEqual(UIDef uiDef, UIDef uiDef2) { Assert.IsFalse(uiDef.Equals(uiDef2)); Assert.IsFalse(uiDef == uiDef2); Assert.IsTrue(uiDef != uiDef2); }
public void TestCloneUIFormNull() { //---------------Set up test pack------------------- UIDef uiDef = new UIDef("Name", null, GetUiGrid()); //--------------Assert PreConditions---------------- //---------------Execute Test ---------------------- IUIDef clonedDef = uiDef.Clone(); //---------------Test Result ----------------------- Assert.IsTrue(uiDef == (UIDef) clonedDef); Assert.IsTrue(uiDef.Equals(clonedDef)); Assert.AreNotSame(uiDef, clonedDef); Assert.AreSame(null, clonedDef.UIForm); Assert.AreNotSame(uiDef.UIGrid, clonedDef.UIGrid); //---------------Tear Down ------------------------- }
public void TestCloneUIDef() { //---------------Set up test pack------------------- UIForm uiForm = GetUiForm(); UIGrid uiGrid = GetUiGrid(); UIDef uiDef = new UIDef("Name", uiForm, uiGrid); //---------------Execute Test ---------------------- IUIDef clonedDef = uiDef.Clone(); //---------------Test Result ----------------------- Assert.IsTrue(uiDef == (UIDef) clonedDef); Assert.IsTrue(uiDef.Equals(clonedDef)); Assert.AreNotSame(uiDef, clonedDef); Assert.AreNotSame(uiDef.UIForm, clonedDef.UIForm); Assert.AreNotSame(uiDef.UIGrid, clonedDef.UIGrid); }