public void ShouldNotAcceptFakeHtmlFile() { var file = new FakeFormFile("TestFiles\\html.png", "image/png"); file.IsImage().Should().BeFalse(); }
public void ShouldAcceptFile() { var file = new FakeFormFile("TestFiles\\sasha.jpeg", "image/jpeg"); file.IsImage().Should().BeTrue(); }