public void OperatorNotEqual_SameValues_IsFalse() { // Arrange var value1 = Dimensions.Abs(100, 100); var value2 = Dimensions.Abs(100, 100); // Act var result = value1 != value2; // Assert result.Should().BeFalse(); }
public void OperatorEquals_SameValues_IsTrue() { // Arrange var value1 = Dimensions.Abs(100, 100); var value2 = Dimensions.Abs(100, 100); // Act var result = value1 == value2; // Assert result.Should().BeTrue(); }
public MaskHandler() { _shapePicker = new ShapePicker(); EllipseMask = new EllipseMask { IsActive = false }; RectangleMask = new RectangleMask { IsActive = false, Corners = new Corners(Dimensions.Abs(50, 50)) }; TextMask = new TextMask { FontSize = 100, Text = "Magic Gradients", IsActive = false }; PathMask = new PathMask { Data = _shapePicker.GetData("Xamagon"), IsActive = false }; Collection = new MaskCollection { Masks = new GradientElements <GradientMask> { RectangleMask, EllipseMask, TextMask, PathMask } }; ShowPickerCommand = new Command(() => ShowPicker()); }