private static void ValidateFlasher(FlasherData data)
        {
            Assert.Equal(false, data.AddBlend);
            Assert.Equal(69, data.Alpha);
            Assert.Equal(383f, data.Center.X);
            Assert.Equal(785f, data.Center.Y);
            Assert.Equal(64, data.Color.Red);
            Assert.Equal(153, data.Color.Green);
            Assert.Equal(225, data.Color.Blue);
            Assert.Equal(0.282f, data.DepthBias);
            Assert.Equal(false, data.DisplayTexture);
            Assert.Equal(4, data.DragPoints.Length);
            Assert.Equal(333f, data.DragPoints[0].Vertex.X);
            Assert.Equal(735f, data.DragPoints[0].Vertex.Y);
            Assert.Equal(0f, data.DragPoints[0].Vertex.Z);
            Assert.Equal(Filters.Filter_Overlay, data.Filter);
            Assert.Equal(100, data.FilterAmount);
            Assert.Equal(50.22f, data.Height);
            Assert.Equal("", data.ImageA);
            Assert.Equal(ImageAlignment.ImageAlignTopLeft, data.ImageAlignment);
            Assert.Equal("", data.ImageB);
            Assert.Equal(false, data.IsDmd);
            Assert.Equal(true, data.IsVisible);
            Assert.Equal(0.921f, data.ModulateVsAdd);
            Assert.Equal(15.651f, data.RotX);
            Assert.Equal(32.918f, data.RotY);
            Assert.Equal(14.32f, data.RotZ);

            Assert.Equal(123f, data.TimerInterval);
            Assert.Equal(false, data.IsTimerEnabled);

            Assert.Equal(10, data.EditorLayer);
            Assert.Equal(true, data.IsLocked);
        }
Beispiel #2
0
        private static void ValidateFlasher(FlasherData data)
        {
            data.AddBlend.Should().Be(false);
            data.Alpha.Should().Be(69);
            data.Center.X.Should().Be(383f);
            data.Center.Y.Should().Be(785f);
            data.Color.Red.Should().Be(64);
            data.Color.Green.Should().Be(153);
            data.Color.Blue.Should().Be(225);
            data.DepthBias.Should().Be(0.282f);
            data.DisplayTexture.Should().Be(false);
            data.DragPoints.Length.Should().Be(4);
            data.DragPoints[0].Vertex.X.Should().Be(333f);
            data.DragPoints[0].Vertex.Y.Should().Be(735f);
            data.DragPoints[0].Vertex.Z.Should().Be(0f);
            data.Filter.Should().Be(Filters.Filter_Overlay);
            data.FilterAmount.Should().Be(100);
            data.Height.Should().Be(50.22f);
            data.ImageA.Should().Be("");
            data.ImageAlignment.Should().Be(ImageAlignment.ImageAlignTopLeft);
            data.ImageB.Should().Be("");
            data.IsDmd.Should().Be(false);
            data.IsVisible.Should().Be(true);
            data.ModulateVsAdd.Should().Be(0.921f);
            data.RotX.Should().Be(15.651f);
            data.RotY.Should().Be(32.918f);
            data.RotZ.Should().Be(14.32f);

            data.TimerInterval.Should().Be(123);
            data.IsTimerEnabled.Should().Be(false);

            data.EditorLayer.Should().Be(10);
            data.EditorLayerName.Should().Be(string.Empty);
            data.EditorLayerVisibility.Should().Be(true);
            data.IsLocked.Should().Be(true);
        }