/// <summary> /// Tests the constructor when parameter <i>managedPath</i> is <b>null</b>. /// </summary> public static void ManagedPathIsNull() { #if DEBUG Console.WriteLine("Constructor_ManagedPathIsNull"); #endif string managedPath = null; ArgumentExceptionAssert.IsThrown( () => { var manager = new CreateNonEmptyFileManager(managedPath, overwrite: true); }, expectedType: typeof(ArgumentNullException), expectedPartialMessage: ArgumentExceptionAssert.NullPartialMessage, expectedParameterName: "managedPath"); }
/// <summary> /// Tests the constructor when parameter <i>managedPath</i> is <b>null</b>. /// </summary> public static void ManagedPathIsNull() { #if DEBUG Console.WriteLine("Constructor_DestinationFileNameIsNull"); #endif string sourcePath = "Data" + Path.DirectorySeparatorChar + "copy-file-managed-path-is-null.txt"; string managedPath = null; ArgumentExceptionAssert.IsThrown( () => { var manager = new CopyFileManager(sourcePath, managedPath, overwrite: true); }, expectedType: typeof(ArgumentNullException), expectedPartialMessage: ArgumentExceptionAssert.NullPartialMessage, expectedParameterName: "managedPath"); }