public void SaveLoadFile() { var key = new LicenseKey() { Key = "hello", Expires = DateTime.Today }; key.SaveToFile(); var load = new LicenseKey().LoadFromFile(); Assert.IsTrue(key.Key == load.Key); }