public void MarkUnmodified() { AssemblyTracker tracker = new AssemblyTracker(new[] { _assemblyDefinition1 }, new TypeDefinitionCache()); tracker.MarkModified(_assemblyDefinition1); Assert.That(tracker.IsModified(_assemblyDefinition1), Is.True); tracker.MarkUnmodified(_assemblyDefinition1); Assert.That(tracker.IsModified(_assemblyDefinition1), Is.False); }
public void MarkUnodified_NotTracked() { AssemblyTracker tracker = new AssemblyTracker(new[] { _assemblyDefinition1 }, new TypeDefinitionCache()); Assert.Throws <ArgumentException> (() => tracker.MarkUnmodified(_assemblyDefinition2)); }