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 IsModified_NotTracked() { AssemblyTracker tracker = new AssemblyTracker (new[] { _assemblyDefinition1 }, new TypeDefinitionCache ()); Assert.Throws<ArgumentException> (() => tracker.IsModified (_assemblyDefinition2)); }