public void Decrement_CountEqualZero_ThrowInvalidOperationException() { var word = new Word("a"); word.Decrement(); Assert.Throws<InvalidOperationException>(word.Decrement); }
public void Increment_IncrementCount() { var word = new Word("a"); word.Increment(); Assert.AreEqual(2, word.Count); }
public void Decrement_DecrementCount() { var word = new Word("a"); word.Decrement(); Assert.AreEqual(0, word.Count); }
public void Constructor_SetWordValue() { const string elemName = "elem name"; var word = new Word(elemName); Assert.AreEqual(elemName, word.Value); }
public void Constructor_SetWordConter() { var word = new Word("a"); Assert.AreEqual(1, word.Count); }