public void NewerThanEmpty_ReturnsNoneNewer()
        {
            var ws1 = new WritingSystemDefinition();

            ws1.Language = "en";
            RepositoryUnderTest.Set(ws1);

            IWritingSystemRepository repository = CreateNewStore();
            int count = 0;

            foreach (WritingSystemDefinition ws in repository.WritingSystemsNewerIn(RepositoryUnderTest.AllWritingSystems))
            {
                count++;
            }
            Assert.AreEqual(0, count);
        }
        public void NewerThanNewer_ReturnsNoneNewer()
        {
            var ws1 = new WritingSystemDefinition();

            ws1.Language     = "en";
            ws1.DateModified = new DateTime(2008, 1, 15);
            RepositoryUnderTest.Set(ws1);

            IWritingSystemRepository repository = CreateNewStore();
            var ws2 = RepositoryUnderTest.MakeDuplicate(ws1);

            ws2.DateModified = new DateTime(2008, 1, 16);
            repository.Set(ws2);

            int count = 0;

            foreach (WritingSystemDefinition ws in repository.WritingSystemsNewerIn(RepositoryUnderTest.AllWritingSystems))
            {
                count++;
            }
            Assert.AreEqual(0, count);
        }
 public void NewerInNull_Throws()
 {
     Assert.Throws <ArgumentNullException>(
         () => RepositoryUnderTest.WritingSystemsNewerIn(null)
         );
 }