Ejemplo n.º 1
0
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            IType expected = new Delta
            {
                NormalRange = new NumericRange
                {
                    IsSubcomponent = true,
                    LowValue       = 1
                },
                NumericThreshold  = 2,
                ChangeComputation = "3",
                DaysRetained      = 4
            };

            IType actual = new Delta();

            actual.FromDelimitedString("1^2^3^4");

            expected.Should().BeEquivalentTo(actual);
        }