public void CreateEncodeStringFactoryTest() { //Arrange var encodeData = new ScreenshotEncodeData(); var screenshotEncodeCreator = new ScreenshotEncodeCreator(encodeData); //Act var encodeStringFactory = screenshotEncodeCreator.CreateEncodeStringFactory(); //Assert Assert.AreEqual(typeof(ScreenshotEncodeStringFactory), encodeStringFactory.GetType()); }
public void CreateFfmpegParserTest() { //Arrange var encodeData = new ScreenshotEncodeData(); var screenshotEncodeCreator = new ScreenshotEncodeCreator(encodeData); var tempFileCreator = new Mock<ITempFileManager>(); //Act var snapshotFfmpegString = screenshotEncodeCreator.CreateFfmpegParser(); //Assert Assert.AreEqual(typeof(ScreenshotFfmpegParser), snapshotFfmpegString.GetType()); }
public void CreateEncodeStringBuilderTest() { //Arrange var encodeData = new ScreenshotEncodeData(); var screenshotEncodeCreator = new ScreenshotEncodeCreator(encodeData); var encodeStringFactory = new Mock<IScreenshotEncodeStringFactory>(); var tempFileManager = new Mock<ITempFileManager>(); //Act var encodeStringBuilder = screenshotEncodeCreator.CreateEncodeStringBuilder(tempFileManager.Object, encodeStringFactory.Object); //Assert Assert.AreEqual(typeof(ScreenshotEncodeStringBuilder), encodeStringBuilder.GetType()); }