public void MissingAssembly() { DummyCircularReferenceTask task = new DummyCircularReferenceTask(@"<?xml version=""1.0"" encoding=""utf-8""?><referenceCache><assembly name=""a.dll""><references name=""b.dll"" /></assembly></referenceCache>", @"<project name=""test"" default=""a""><target name=""a""/></project>"); task.DoIt(); }
public void ComplexCircRefOrderCBA() { DummyCircularReferenceTask task = new DummyCircularReferenceTask( @"<referenceCache>" + @"<assembly name=""c.dll""><references name=""a.dll"" /></assembly>" + @"<assembly name=""b.dll""><references name=""c.dll"" /></assembly>" + @"<assembly name=""a.dll""><references name=""b.dll"" /><references name=""c.dll"" /></assembly>" + "</referenceCache>", @"<project name=""test"" default=""a"">" + @"<target name=""a"" depends=""b,c""/>" + @"<target name=""b"" depends=""c""/>" + @"<target name=""c""/>" + @"</project>"); task.FailOnError = false; task.DoIt(); Assert.AreEqual("Circular reference: a.dll <- c.dll <- b.dll\r\n", task.LogMessages); }