public void Import_LoopbackString() { var formKey = new FormKey(modKey: new ModKey("Oblivion", ModType.Master), id: 0x00C51A); Assert.True( FormKey.TryFactory(formKey.ToString(), out FormKey id)); Assert.Equal( formKey, id); }
public override string ToString() { if (Types.Length == 0) { if (Type != null) { return($"{nameof(MissingRecordException)} {FormKey?.ToString() ?? EditorID}<{Type}>: {this.Message} {this.InnerException}{this.StackTrace}"); } else { return($"{nameof(MissingRecordException)} {FormKey?.ToString() ?? EditorID}: {this.Message} {this.InnerException}{this.StackTrace}"); } } else { return($"{nameof(MissingRecordException)} {FormKey?.ToString() ?? EditorID}<{Type} (+{Types.Length - 1})>: {this.Message} {this.InnerException}{this.StackTrace}"); } }