public void GivenNoFilenameSetInAttribute_WhenUpdatePageTypeCalled_UpdatesPageTypeFilenameWith_Filename() { PageTypeAttribute attribute = new PageTypeAttribute(); IPageType pageType = new NativePageType(); PageTypeUpdater pageTypeUpdater = CreatePageTypeUpdater(); pageTypeUpdater.DefaultFilename = TestValueUtility.CreateRandomString(); pageTypeUpdater.UpdateFilename(pageType, attribute); Assert.Equal <string>(pageTypeUpdater.DefaultFilename, pageType.FileName); }