public void Create() { var context = new Mock<IContextAware>(); var mru = new MostRecentlyUsed(@"c:\temp\a.txt", DateTimeOffset.Now); var model = new MostRecentlyUsedModel(context.Object, mru); Assert.AreEqual(Path.GetFileNameWithoutExtension(mru.FilePath), model.FileName); Assert.AreEqual(mru.FilePath, model.FilePath); Assert.AreEqual(mru.LastTimeOpened, model.LastTimeOpened); }
public void Create() { var context = new Mock <IContextAware>(); var mru = new MostRecentlyUsed(@"c:\temp\a.txt", DateTimeOffset.Now); var model = new MostRecentlyUsedModel(context.Object, mru); Assert.AreEqual(Path.GetFileNameWithoutExtension(mru.FilePath), model.FileName); Assert.AreEqual(mru.FilePath, model.FilePath); Assert.AreEqual(mru.LastTimeOpened, model.LastTimeOpened); }