Beispiel #1
0
        public void TestCheckAllReferencesExistOnDisk1()
        {
            MCExtended mc = new MCExtended();

            mc.BuildEngine = new TestEngine();

            mc.References = new ITaskItem [0];
            Assert.IsTrue(mc.CheckAllReferencesExistOnDisk(), "A1");

            mc.References = null;
            Assert.IsTrue(mc.CheckAllReferencesExistOnDisk(), "A2");

            mc.References = new ITaskItem [1] {
                new TaskItem(@"Test\resources\test.cs")
            };
            Assert.IsTrue(mc.CheckAllReferencesExistOnDisk(), "A3");

            mc.References = new ITaskItem [2] {
                new TaskItem(@"Test\resources\test.cs"), new TaskItem("X")
            };
            Assert.IsFalse(mc.CheckAllReferencesExistOnDisk(), "A4");
        }
Beispiel #2
0
        public void TestCheckAllReferencesExistOnDisk1()
        {
            MCExtended mc = new MCExtended();

            mc.BuildEngine = new TestEngine();

            mc.References = new ITaskItem [0];
            Assert.IsTrue(mc.CheckAllReferencesExistOnDisk(), "A1");

            mc.References = null;
            Assert.IsTrue(mc.CheckAllReferencesExistOnDisk(), "A2");

            string path = Path.Combine(Path.Combine("Test", "resources"), "test.cs");

            mc.References = new ITaskItem [1] {
                new TaskItem(path)
            };
            Assert.IsTrue(mc.CheckAllReferencesExistOnDisk(), "A3");

            mc.References = new ITaskItem [2] {
                new TaskItem(path), new TaskItem("X")
            };
            Assert.IsFalse(mc.CheckAllReferencesExistOnDisk(), "A4");
        }
Beispiel #3
0
		public void TestCheckAllReferencesExistOnDisk1 ()
		{
			MCExtended mc = new MCExtended ();
			mc.BuildEngine = new TestEngine ();
			
			mc.References = new ITaskItem [0];
			Assert.IsTrue (mc.CheckAllReferencesExistOnDisk (), "A1");

			mc.References = null;
			Assert.IsTrue (mc.CheckAllReferencesExistOnDisk (), "A2");

			string path = Path.Combine (Path.Combine ("Test", "resources"), "test.cs");
			mc.References = new ITaskItem [1] { new TaskItem (path) };
			Assert.IsTrue (mc.CheckAllReferencesExistOnDisk (), "A3");

			mc.References = new ITaskItem [2] { new TaskItem (path), new TaskItem ("X") };
			Assert.IsFalse (mc.CheckAllReferencesExistOnDisk (), "A4");
		}
Beispiel #4
0
		public void TestCheckAllReferencesExistOnDisk1 ()
		{
			MCExtended mc = new MCExtended ();
			mc.BuildEngine = new TestEngine ();
			
			mc.References = new ITaskItem [0];
			Assert.IsTrue (mc.CheckAllReferencesExistOnDisk (), "A1");

			mc.References = null;
			Assert.IsTrue (mc.CheckAllReferencesExistOnDisk (), "A2");

			mc.References = new ITaskItem [1] { new TaskItem (@"Test\resources\test.cs") };
			Assert.IsTrue (mc.CheckAllReferencesExistOnDisk (), "A3");

			mc.References = new ITaskItem [2] { new TaskItem (@"Test\resources\test.cs"), new TaskItem ("X") };
			Assert.IsFalse (mc.CheckAllReferencesExistOnDisk (), "A4");
		}