/// <inheritdoc/> public void SetData(XunitSerializationInfo info) { TestClass = info.GetValue <ITestClass>("TestClass"); var methodName = info.GetString("MethodName"); Method = TestClass.Class.GetMethod(methodName, includePrivateMethod: false); }
/// <inheritdoc/> public void SetData(XunitSerializationInfo info) { TestCollection = info.GetValue <ITestCollection>("TestCollection"); var assemblyName = info.GetString("ClassAssemblyName"); var typeName = info.GetString("ClassTypeName"); Class = Reflector.Wrap(Reflector.GetType(assemblyName, typeName)); }
/// <inheritdoc/> public void SetData(XunitSerializationInfo info) { DisplayName = info.GetString("DisplayName"); TestAssembly = info.GetValue <ITestAssembly>("TestAssembly"); UniqueID = Guid.Parse(info.GetString("UniqueID")); var assemblyName = info.GetString("DeclarationAssemblyName"); var typeName = info.GetString("DeclarationTypeName"); if (!String.IsNullOrWhiteSpace(assemblyName) && String.IsNullOrWhiteSpace(typeName)) { CollectionDefinition = Reflector.Wrap(Reflector.GetType(assemblyName, typeName)); } }
/// <inheritdoc/> public void SetData(XunitSerializationInfo data) { TestMethod = data.GetValue <ITestMethod>("TestMethod"); TestMethodArguments = null; }
public static T GetValue <T>(this XunitSerializationInfo info, string name) { return((T)info.GetValue(name, typeof(T))); }
/// <inheritdoc/> public virtual void SetData(XunitSerializationInfo data) { TestMethod = data.GetValue <ITestMethod>("TestMethod"); TestMethodArguments = null; DefaultMethodDisplay = (TestMethodDisplay)Enum.Parse(typeof(TestMethodDisplay), data.GetString("DefaultMethodDisplay")); }
/// <inheritdoc/> public void SetData(XunitSerializationInfo info) { FileName = info.GetString("FileName"); LineNumber = (int?)info.GetValue("LineNumber", typeof(int?)); }
/// <inheritdoc/> public void SetData(XunitSerializationInfo data) { var testMethod = data.GetValue <ITestMethod>("TestMethod"); Initialize(testMethod, new object[0]); }