public void CanBeSerialised() { var configuration = new PluginConfiguration(); var serialised = new XmlSerialiser(new ConsoleLogManager()).Serialise(configuration); serialised.Should().Be(SerialisedForm); }
public void CanBeDeserialised() { var expected = new PluginConfiguration(); var actual = new XmlSerialiser(new ConsoleLogManager()).Deserialise <PluginConfiguration>(SerialisedForm); actual.Should().BeEquivalentTo(expected); }