public void WhenInitializedParameterLessItWillContainDefaultValues() { Test(resolver => { const string extension = "Test"; var anyFileInfo = new GenericFileInfo(extension); Assert.AreEqual(string.Empty, anyFileInfo.DefaultFileName); Assert.AreEqual(string.Empty, anyFileInfo.Description); Assert.AreEqual(extension, anyFileInfo.Extension); }); }
/// <summary> /// Initializes a new instance of the <see cref="GenericFile" /> class. /// </summary> /// <param name="fullName">The file path.</param> public GenericFile(string fullName) : base(fullName) { genericFileInfo = new GenericFileInfo(PathUtils.GetExtensionWithoutStartingDot(fullName)); }