public void DynamicVersion() { var random = new Random(); var quality = random.Next(); var width = random.Next(); var height = random.Next(); var extension = Guid.NewGuid().ToString(); var n = new Naming(); var result = n.DynamicVersion(extension, quality, width, height); var expected = string.Format(Naming.DynamicVersionFormat, extension, quality, width, height); Assert.AreEqual(expected, result); }