public void ProjectIsDirtyWhenRemovingAssembly() { XunitProject project = new XunitProject(); XunitProjectAssembly assembly = new XunitProjectAssembly(); project.AddAssembly(assembly); project.IsDirty = false; project.RemoveAssembly(assembly); Assert.True(project.IsDirty); }
public void RemovesAssemblyFromAssembliesList() { XunitProject project = new XunitProject(); XunitProjectAssembly assembly = new XunitProjectAssembly(); project.AddAssembly(assembly); project.RemoveAssembly(assembly); Assert.DoesNotContain(assembly, project.Assemblies); }
public void UnknownAssemblyDoesNotThrow() { XunitProject project = new XunitProject(); XunitProjectAssembly assembly = new XunitProjectAssembly(); Assert.DoesNotThrow(() => project.RemoveAssembly(assembly)); }
public void NullAssemblyThrows() { XunitProject project = new XunitProject(); Assert.Throws<ArgumentNullException>(() => project.RemoveAssembly(null)); }