public void HasChangeFor_InLogNoChange_ReturnsFalse()
		{
			var log = new WritingSystemChangeLog();
			log.LogChange("aaa", "bbb");
			log.LogChange("bbb", "aaa");
			Assert.That(log.HasChangeFor("aaa"), Is.False);
		}
Esempio n. 2
0
        public void HasChangeFor_InLogHasChange_ReturnsTrue()
        {
            var log = new WritingSystemChangeLog();

            log.LogChange("aab", "bba");
            Assert.That(log.HasChangeFor("aab"), Is.True);
        }
Esempio n. 3
0
        public void HasChangeFor_NotInLog_ReturnsFalse()
        {
            var log = new WritingSystemChangeLog();

            log.LogChange("aab", "bba");
            Assert.That(log.HasChangeFor("fff"), Is.False);
        }
Esempio n. 4
0
        public void HasChangeFor_InLogNoChange_ReturnsFalse()
        {
            var log = new WritingSystemChangeLog();

            log.LogChange("aaa", "bbb");
            log.LogChange("bbb", "aaa");
            Assert.That(log.HasChangeFor("aaa"), Is.False);
        }
 public void Read_SampleLogFile_PopulatesChanges()
 {
     using (var e = new TestEnvironment())
     {
         var log = new WritingSystemChangeLog(new WritingSystemChangeLogDataMapper(e.GetSampleLogFilePath()));
         Assert.That(log.HasChangeFor("aaa"));
         Assert.That(log.GetChangeFor("aaa"), Is.EqualTo("ddd"));
     }
 }
		public void Read_SampleLogFile_PopulatesChanges()
		{
			using (var e = new TestEnvironment())
			{
				var log = new WritingSystemChangeLog(new WritingSystemChangeLogDataMapper(e.GetSampleLogFilePath()));
				Assert.That(log.HasChangeFor("aaa"));
				Assert.That(log.GetChangeFor("aaa"), Is.EqualTo("ddd"));
			}
		}
		public void HasChangeFor_InLogHasChange_ReturnsTrue()
		{
			var log = new WritingSystemChangeLog();
			log.LogChange("aab", "bba");
			Assert.That(log.HasChangeFor("aab"), Is.True);
		}
		public void HasChangeFor_NotInLog_ReturnsFalse()
		{
			var log = new WritingSystemChangeLog();
			log.LogChange("aab", "bba");
			Assert.That(log.HasChangeFor("fff"), Is.False);
		}