示例#1
0
        public void Should_lower_case_sentence_correction(string mispelled, string expected)
        {
            var spelling = new Spelling();

            // Act
            string actual = spelling.CorrectSentence(mispelled);

            // Assert
            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void Should_correct_sentences(string mispelled, string expected)
        {
            // Arrange
            var spelling = new Spelling();

            // Act
            string actual = spelling.CorrectSentence(mispelled);

            // Assert
            Assert.AreEqual(expected, actual);
        }
        public void should_correct_sentences(string mispelled, string expected)
        {
            // Arrange
            string dictionary = File.ReadAllText("big.txt");
            var    spelling   = new Spelling(dictionary);

            // Act
            string actual = spelling.CorrectSentence(mispelled);

            // Assert
            Assert.AreEqual(expected, actual);
        }
		public void should_correct_sentences(string mispelled, string expected)
		{
			// Arrange
			string dictionary = File.ReadAllText("big.txt");
			var spelling = new Spelling(dictionary);

			// Act
			string actual = spelling.CorrectSentence(mispelled);

			// Assert
			Assert.AreEqual(expected, actual);
		}