Exemplo n.º 1
0
        public void GetProjectByTest1()
        {
            var target = new SProjectsMap();

            Assert.Null(target.GetProjectBy(null).pGuid);
            Assert.Null(target.GetProjectBy(string.Empty).pGuid);
            Assert.Equal(EXIST_GUID, target.GetProjectBy(EXIST_GUID).pGuid);
            Assert.Equal(EXIST_GUID2, target.GetProjectBy(EXIST_GUID2).pGuid);
        }
Exemplo n.º 2
0
        public void DataTest3()
        {
            var target = new SProjectsMap();

            Assert.Equal("Project1", target.LastBy(BuildType.Clean).name);
            Assert.Equal("path\\to.sln", target.LastBy(BuildType.Clean).path);
            Assert.Equal(EXIST_GUID, target.LastBy(BuildType.Clean).pGuid);
            Assert.Equal("{22222222-2222-2222-2222-222222222222}", target.LastBy(BuildType.Clean).pType);

            Assert.Equal("Project3", target.LastBy(BuildType.Build).name);
            Assert.Equal("path\\to3.sln", target.LastBy(BuildType.Build).path);
            Assert.Equal(EXIST_GUID3, target.LastBy(BuildType.Build).pGuid);
            Assert.Equal("{55555555-5555-5555-5555-555555555555}", target.LastBy(BuildType.Build).pType);
        }
Exemplo n.º 3
0
        public void DataTest1()
        {
            var target = new SProjectsMap();

            Assert.Equal(EXIST_GUID, target.GuidList[0]);
            Assert.Equal(EXIST_GUID2, target.GuidList[1]);
            Assert.Equal(EXIST_GUID3, target.GuidList[2]);

            Assert.Equal("Project1", target.FirstProject.name);
            Assert.Equal("path\\to.sln", target.FirstProject.path);
            Assert.Equal(EXIST_GUID, target.FirstProject.pGuid);
            Assert.Equal("{22222222-2222-2222-2222-222222222222}", target.FirstProject.pType);

            Assert.Equal("Project3", target.LastProject.name);
            Assert.Equal("path\\to3.sln", target.LastProject.path);
            Assert.Equal(EXIST_GUID3, target.LastProject.pGuid);
            Assert.Equal("{55555555-5555-5555-5555-555555555555}", target.LastProject.pType);
        }