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 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); }