예제 #1
0
 public void WhenIUpdateWithANewerVersionThePathChanges()
 {
     FileReference fileRef = new FileReference("1.0.0", @"R:\lib\1.0.0\mylib.dll");
     fileRef.UpdateTo("1.5.0");
     Assert.AreEqual(@"R:\lib\1.5.0\mylib.dll", fileRef.Path);
 }
예제 #2
0
 public void WhenIUpdateWithTheSameVersionThePathRemainsTheSame()
 {
     FileReference fileRef = new FileReference("1.0.0",@"R:\lib\1.0.0\mylib.dll");
     fileRef.UpdateTo("1.0.0");
     Assert.AreEqual(@"R:\lib\1.0.0\mylib.dll", fileRef.Path);
 }
예제 #3
0
 public void WhenIUpdateWithANewerVersionButWithLessDigitsThePathChanges2()
 {
     FileReference fileRef = new FileReference("1.1.233.0", @"R:\lib\1.1\mylib.dll");
     fileRef.UpdateTo("1.2");
     Assert.AreEqual(@"R:\lib\1.2\mylib.dll", fileRef.Path);
 }