コード例 #1
0
        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();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
		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);
		}
コード例 #4
0
		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();
		}