public void Test_AsString_PreviousValue_New() { //--------------- Set up test pack ------------------ IBOKey boKey = CreateBOKeyGuid(); //--------------- Test Preconditions ---------------- //--------------- Execute Test ---------------------- string keyAsString = boKey.AsString_PreviousValue(); //--------------- Test Result ----------------------- StringAssert.AreEqualIgnoringCase(boKey.AsString_CurrentValue(), keyAsString); }
public void Test_AsString_PreviousValue_FirstChange() { //--------------- Set up test pack ------------------ IBOKey boKey = CreateBOKeyGuid(); string expectedPreviousValue = boKey.AsString_CurrentValue(); Guid guid = Guid.NewGuid(); //--------------- Test Preconditions ---------------- //--------------- Execute Test ---------------------- boKey[0].Value = guid; string keyAsString = boKey.AsString_PreviousValue(); //--------------- Test Result ----------------------- StringAssert.AreEqualIgnoringCase(expectedPreviousValue, keyAsString); }
public void Test_AsString_PreviousValue_TwoPropKey() { //--------------- Set up test pack ------------------ IBOKey boKey = CreateBOKeyGuidAndString(); string expectedPreviousValue = boKey.AsString_CurrentValue(); Guid guid = Guid.NewGuid(); string str = TestUtil.GetRandomString(); //--------------- Test Preconditions ---------------- //--------------- Execute Test ---------------------- boKey[0].Value = guid; boKey[1].Value = str; string keyAsString = boKey.AsString_PreviousValue(); //--------------- Test Result ----------------------- StringAssert.AreEqualIgnoringCase(expectedPreviousValue, keyAsString); }