public async Task ConvertAsync_Vtf1024WithValidImage_GeneratesValidImage(string inputFileName, string outputFileName) { var sprayTools = new SprayTools(); using var inputStream = new FileStream(Path.Combine(BaseTestImagesDirectory, inputFileName), FileMode.Open, FileAccess.Read); using var outputStream = new FileStream(outputFileName, FileMode.OpenOrCreate, FileAccess.Write); var inputStreams = new List <Stream> { inputStream }; await sprayTools.ConvertAsync(inputStreams, outputStream, new Vtf1024SaveProfile(), CancellationToken.None); }
public async Task ConvertAsync_FadingWithValidImages_GeneratesValidImage() { var sprayTools = new SprayTools(); using var nearInputStream = new FileStream( Path.Combine(BaseTestImagesDirectory, "aaa-fade-cookie-scary.png"), FileMode.Open, FileAccess.Read); using var farInputStream = new FileStream( Path.Combine(BaseTestImagesDirectory, "aaa-fade-cookie-normal.png"), FileMode.Open, FileAccess.Read); using var outputStream = new FileStream("zzz-fade-test.vtf", FileMode.OpenOrCreate, FileAccess.Write); var inputStreams = new List <Stream> { nearInputStream, farInputStream }; await sprayTools.ConvertAsync(inputStreams, outputStream, new VtfFadingSaveProfile(), CancellationToken.None); }