Cosmos/source/Cosmos.Build.Common.Tests/BuildPropertiesTest.cs
2016-03-13 20:42:09 -05:00

25 lines
834 B
C#

using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Cosmos.Build.Common.Tests
{
[TestClass]
public class BuildPropertiesTest
{
[TestMethod]
public void TestParsing()
{
var properties = new BuildProperties();
properties.SetProperty(BuildPropertyNames.StackCorruptionDetectionEnabledString, "False");
Assert.AreEqual(
false,
properties.GetProperty<bool>(BuildPropertyNames.StackCorruptionDetectionEnabledString, true));
Assert.AreEqual(
false,
properties.StackCorruptionDetectionEnabled);
Assert.AreEqual(
"False",
properties.GetProperty(BuildPropertyNames.StackCorruptionDetectionEnabledString));
}
}
}