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 SetPropertyAsync(string propertyName, string value) { PropertyChanging?.Invoke(this, new ProjectPropertyChangingEventArgs(propertyName)); var oldValue = mBuildProperties.GetProperty(propertyName); mBuildProperties.SetProperty(propertyName, value); PropertyChanged?.Invoke(this, new ProjectPropertyChangedEventArgs( propertyName, oldValue, mBuildProperties.GetProperty(propertyName))); mIsDirty = true; return(Task.CompletedTask); }
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)); }