Beispiel #1
0
        public void Remove_WritingsystemIdExists_FiresEventAndEventArgIsSetToIdOfDeletedWritingSystem()
        {
            RepositoryUnderTest.WritingSystemDeleted += OnWritingsystemDeleted;
            var ws = new WritingSystemDefinition("en");

            RepositoryUnderTest.Set(ws);
            RepositoryUnderTest.Remove(ws.LanguageTag);
            Assert.That(_writingSystemDeletedEventArgs.Id, Is.EqualTo(ws.LanguageTag));
        }