Ejemplo n.º 1
0
        public void  Convert_WhenPassedFalse_ReturnRadiusFalse()
        {
            //Arrange
            var vm = new BooleanToCornerRadiusConverter();
            const int valueIfTrue = 95;
            const int valueIfFalse = 195;
            vm.ValueIfTrue = valueIfTrue;
            vm.ValueIfFalse = valueIfFalse;

            //Act
            var result = (CornerRadius)vm.Convert(false, null, null, CultureInfo.InvariantCulture);

            //Arrange
            Assert.AreEqual(result.BottomLeft, valueIfFalse);
            Assert.AreEqual(result.BottomRight, valueIfFalse);
            Assert.AreEqual(result.TopLeft, valueIfFalse);
            Assert.AreEqual(result.TopRight, valueIfFalse);

        }
Ejemplo n.º 2
0
 public void PropertiesTests()
 {
     var vm = new BooleanToCornerRadiusConverter();
     TestsHelper.TestPublicDeclaredPropertiesGetSet(vm, true);
 }