コード例 #1
0
            public void Should_Return_The_Same_Configuration()
            {
                // Given
                var settings = new DotNetBuildSettings(new FilePath("./Test.sln"));

                // When
                var result = settings.WithTarget("Target");

                // Then
                Assert.Equal(settings, result);
            }
コード例 #2
0
            public void Should_Add_Target_To_Configuration()
            {
                // Given
                var settings = new DotNetBuildSettings(new FilePath("./Test.sln"));

                // When
                settings.WithTarget("Target");

                // Then
                Assert.True(settings.Targets.Contains("Target"));
            }