Example #1
0
        public void Class_should_be_empty()
        {
            var converter = new DefinitionResetConverter();
            var result    = converter.Convert(new HierarchicalDefinitions(), null, null, null);

            result.Should().Be(string.Empty);

            result = converter.Convert(new HierarchicalDefinitions()
            {
                ResetType = Shared.Models.ResetType.Any
            }, null, null, null);
            result.Should().Be(string.Empty);

            result = converter.Convert(null, null, null, null);
            result.Should().Be(string.Empty);
        }
Example #2
0
        public void Class_should_be_reset_ignored_conflict()
        {
            var converter = new DefinitionResetConverter();
            var result    = converter.Convert(new HierarchicalDefinitions()
            {
                ResetType = Shared.Models.ResetType.Ignored
            }, null, null, null);

            result.Should().Be("IgnoredResetMod");
        }