public void DoesThrowWhenIdentifierMissing()
        {
            // Arrange
            var sut = new HasIdentifierValidator();
            var json = new JObject();
            json["spec_version"] = 1;

            // Act
            TestDelegate act = () => sut.Validate(new Metadata(json));

            // Assert
            Assert.That(act, Throws.Exception,
                "HasIdentifierValidator should throw when identifier is missing."
            );
        }
        public void DoesNotThrowWhenIdentifierPresent()
        {
            // Arrange
            var sut = new HasIdentifierValidator();
            var json = new JObject();
            json["spec_version"] = 1;
            json["identifier"] = "AwesomeMod";

            // Act
            TestDelegate act = () => sut.Validate(new Metadata(json));

            // Assert
            Assert.That(act, Throws.Nothing,
                "HasIdentifierValidator should not throw when identifier is present."
            );
        }