Пример #1
0
        public void SerializingDefaultConfiguration()
        {
            var config = new Config();

            ConfigSerializer.SaveConfiguration(testDirectory, config);

            Approvals.VerifyFile(testFile);
        }
Пример #2
0
        public void SerializingConfigurationWithCustomSettings()
        {
            var config = new Config
            {
                NextVersion = "0.5.0",
                Tag         = "rc",
                TypeScopes  = new HashSet <TypeScope>
                {
                    new TypeScope("yes", new Description("Singular", "Plural"), "my scope"),
                    new TypeScope("feature", new Description("Feature", "Features"))
                }
            };

            ConfigSerializer.SaveConfiguration(testDirectory, config);
            Approvals.VerifyFile(testFile);
        }