public void ConvertSectionTest() { LC4Convertor target = new LC4Convertor(); TestProject.Denisenko_Cutting_Converting_LC4ConvertorAccessor accessor = new TestProject.Denisenko_Cutting_Converting_LC4ConvertorAccessor(target); ParametersCollection parameters = new ParametersCollection(); parameters.CutterThickness = 10M; CuttingScheme scheme = new CuttingScheme(); scheme.Width = 1000M; scheme.Height = 1000M; scheme.Parameters = parameters; Section someSection = null; scheme.Cut(scheme.RootSection, 20M, CutType.Vertical, out someSection); Section prevSection = null; Section input = scheme.RootSection.NestedSections[0]; Section cut = scheme.RootSection.NestedSections[1]; LC4Section expected = new LC4Section(); expected.Size = LC4Numeric.FromNonScaled(30); expected.SectionType = LC4SectionType.Anschnitt; LC4Section actual; actual = accessor.ConvertSection(input, prevSection, cut); Assert.AreEqual <LC4Section>(expected, actual, "Denisenko.Cutting.Converting.LC4Convertor.ConvertSection did not return the expec" + "ted value."); Assert.Inconclusive("Verify the correctness of this test method."); }
public void NumericFromDecimalTest() { decimal value = 0.1M; // TODO: Initialize to an appropriate value LC4Numeric expected = LC4Numeric.FromScaled(10000); LC4Numeric actual; actual = TestProject.Denisenko_Cutting_Converting_LC4ConvertorAccessor.NumericFromDecimal(value); Assert.AreEqual(expected, actual, "Denisenko.Cutting.Converting.LC4Convertor.NumericFromDecimal did not return the e" + "xpected value."); }