public void SetPropertyWithConstructor_StoresWords_() { ReplaceWords testCase = new ReplaceWords("word", "this is a sentence", "dog"); //Works. Also returns the correct full sentence string //Assert.AreEqual("this is a sentence", testCase.GetSentence()); Assert.AreEqual(typeof(ReplaceWords), testCase.GetType()); }
public void SetProperty_StoresWords_True() { ReplaceWords testSentence = new ReplaceWords("this is a test sentence."); Assert.AreEqual(typeof(ReplaceWords), testSentence.GetType()); }