Beispiel #1
0
 public void TestParsing()
 {
     var properties = new BuildProperties();
     properties.SetProperty(BuildProperties.StackCorruptionDetectionEnabledString, "False");
     Assert.AreEqual(
         false, 
         properties.GetProperty<bool>(BuildProperties.StackCorruptionDetectionEnabledString, true));
     Assert.AreEqual(
         false,
         properties.StackCorruptionDetectionEnabled);
     Assert.AreEqual(
         "False",
         properties.GetProperty(BuildProperties.StackCorruptionDetectionEnabledString));
 }
        public void TestParsing()
        {
            var properties = new BuildProperties();

            properties.SetProperty(BuildProperties.StackCorruptionDetectionEnabledString, "False");
            Assert.AreEqual(
                false,
                properties.GetProperty <bool>(BuildProperties.StackCorruptionDetectionEnabledString, true));
            Assert.AreEqual(
                false,
                properties.StackCorruptionDetectionEnabled);
            Assert.AreEqual(
                "False",
                properties.GetProperty(BuildProperties.StackCorruptionDetectionEnabledString));
        }
Beispiel #3
0
 public Task <string> GetPropertyAsync(string propertyName) =>
 Task.FromResult(mBuildProperties.GetProperty(propertyName));