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)); }
public Task <string> GetPropertyAsync(string propertyName) => Task.FromResult(mBuildProperties.GetProperty(propertyName));