public void TestVersion() { FileAction fileAction = new FileAction( new VersionProperty(fileDetails), new SizeProperty(fileDetails), new DataGenerator() ); var randomVersion = fileAction.GetRandomVersion(); var version = fileAction.PerformAction(randomVersion, "C:/file.txt"); Assert.IsTrue(version.Contains(".")); }