Ejemplo n.º 1
0
        public void JoinFacets_Null(string f1, string f2)
        {
            var facet1 = new Facet(f1.Split(' ').Select(int.Parse).ToArray());
            var facet2 = new Facet(f2.Split(' ').Select(int.Parse).ToArray());

            SolutionPacker.JoinFacets(facet1, facet2).Should().Be(null);
        }
Ejemplo n.º 2
0
        public void JoinFacets(string f1, string f2, string expectedFacet)
        {
            var facet1 = new Facet(f1.Split(' ').Select(int.Parse).ToArray());
            var facet2 = new Facet(f2.Split(' ').Select(int.Parse).ToArray());

            FacetToString(SolutionPacker.JoinFacets(facet1, facet2)).Should().Be(expectedFacet);
        }