ApplicationSettingsTests.CreationTests.When_using_file_name.Then_relative_path_should_be_converted_to_aboslute_path C# (CSharp) Method

Then_relative_path_should_be_converted_to_aboslute_path() private method

        public void Then_relative_path_should_be_converted_to_aboslute_path()
        {
            // Using only file name so that the path is relative
            var settings = new AppSettings(TestHelpers.GetRelativePathToConfigurationFile(SimpleConfig.ConfigFile));

            // This is the absolute path to the file
            Assert.AreEqual(SimpleConfig.AbsolutePathToConfigFile, settings.FullPath);
            Assert.IsTrue(settings.FileExists);
        }