Reversed argument order: Assert.Throws<ArgumentException>(paramName, code);