示例#1
0
        public void No_Engine_Actions_Are_Performed()
        {
            _result = ClassInTest.RebuildFromFormFile(null, InvalidFormFileMock.Object);

            GlasswallVersionServiceMock.VerifyNoOtherCalls();
            FileTypeDetectorMock.VerifyNoOtherCalls();
            FileProtectorMock.VerifyNoOtherCalls();
        }
        public void File_Is_Rebuilt()
        {
            FileProtectorMock.Verify(
                s => s.GetProtectedFile(
                    It.Is <ContentManagementFlags>(x => x == Policy.DefaultContentManagementFlags),
                    It.Is <string>(x => x == _expectedType.FileTypeName),
                    It.Is <byte[]>(x => x.SequenceEqual(ExpectedDownloadFile))),
                Times.Once);

            FileProtectorMock.VerifyNoOtherCalls();
        }
        public void No_Engine_Actions_Are_Performed(string base64)
        {
            ClassInTest.RebuildFromBase64(new Base64Request
            {
                Base64 = base64
            });

            GlasswallVersionServiceMock.VerifyNoOtherCalls();
            FileTypeDetectorMock.VerifyNoOtherCalls();
            FileProtectorMock.VerifyNoOtherCalls();
        }
示例#4
0
 public void File_Is_Not_Rebuilt()
 {
     FileProtectorMock.VerifyNoOtherCalls();
 }
示例#5
0
 public void No_Engine_Actions_Are_Performed()
 {
     GlasswallVersionServiceMock.VerifyNoOtherCalls();
     FileTypeDetectorMock.VerifyNoOtherCalls();
     FileProtectorMock.VerifyNoOtherCalls();
 }