예제 #1
0
        public async Task CreatePackage_LibraryWithXmlDoc_ShouldNotFail()
        {
            var solutionPath = Assets.GetScenarioSolutionPath("CreatePackage_LibraryWithXmlDoc_ShouldNotFail");
            var result       = await MSBuild.RebuildAsync(solutionPath);

            result.AssertSuccessfulBuild();
        }
예제 #2
0
        public async Task Dependency_NoDependencies_Fails()
        {
            var solutionPath = Assets.GetScenarioSolutionPath("Dependency_NoDependencies_Fails");
            var result       = await MSBuild.RebuildAsync(solutionPath);

            var error = result.ErrorEvents.Single();

            var expectedMessage = "Cannot create a package that has no dependencies nor content.";
            var actualMessage   = error.Message;

            Assert.Equal(expectedMessage, actualMessage);
        }