public void AllowDataToBeOverwritten() { var initialData = "Test Data"; var data = new ConsoleData(initialData); var overwriteData = "Overwrite Data"; data.Write(overwriteData); data.Read().ShouldNotBe(initialData); data.Read().ShouldBe(overwriteData); }
public void WriteDataToItself() { var expectedString = "Test Data"; var data = new ConsoleData(expectedString); data.Read().ShouldBe(expectedString); }