Ejemplo n.º 1
0
        public void Write_WithSmallHeader_ReturnsExpectedResult()
        {
            var hdr    = new ASCIIEncoding().GetBytes("short header");
            var result = ObjectUnderTest.Write(TestHelpers.BlockExpectedResult, hdr);

            Approvals.VerifyBinaryFile(result, ".stl");
        }
Ejemplo n.º 2
0
        public void Write_WithLargeHeader_ReturnsExpectedResult()
        {
            var hdr      = string.Join("", Enumerable.Repeat("abcdefghijklmnopqrstuvwxyz1234567890", 10));
            var hdrBytes = new ASCIIEncoding().GetBytes(hdr);

            var result = ObjectUnderTest.Write(TestHelpers.BlockExpectedResult, hdrBytes);

            Approvals.VerifyBinaryFile(result, ".stl");
        }
Ejemplo n.º 3
0
        public void Write_WithBlock_ReturnsExpectedResult()
        {
            var result = ObjectUnderTest.Write(TestHelpers.BlockExpectedResult);

            Approvals.VerifyBinaryFile(result, ".stl");
        }