Exemplo n.º 1
0
        public void GenerateTextEmpty()
        {
            var influence = new An8Influence();

            var text = influence.GenerateText();

            string expected =
                @"influence { 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 }
";

            Assert.Equal(
                expected.Replace("\r\n", "\n"),
                text.Replace("\r\n", "\n"));
        }
Exemplo n.º 2
0
        public void GenerateTextNull()
        {
            var influence = new An8Influence();

            influence.LowerEndCenter      = 2.0f;
            influence.LowerEndInnerRadius = 3.0f;
            influence.LowerEndOuterRadius = 4.0f;
            influence.UpperEndCenter      = 5.0f;
            influence.UpperEndInnerRadius = 6.0f;
            influence.UpperEndOuterRadius = 7.0f;

            var text = influence.GenerateText();

            string expected =
                @"influence { 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 }
";

            Assert.Equal(
                expected.Replace("\r\n", "\n"),
                text.Replace("\r\n", "\n"));
        }