コード例 #1
0
ファイル: WordTests.cs プロジェクト: jarocky/PatternSearch
        public void Decrement_CountEqualZero_ThrowInvalidOperationException()
        {
            var word = new Word("a");
              word.Decrement();

              Assert.Throws<InvalidOperationException>(word.Decrement);
        }
コード例 #2
0
ファイル: WordTests.cs プロジェクト: jarocky/PatternSearch
        public void Decrement_DecrementCount()
        {
            var word = new Word("a");

              word.Decrement();

              Assert.AreEqual(0, word.Count);
        }