Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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}");
     }
 }