コード例 #1
0
        public void GetRelativeAddressNupkg_WhenVersionIsNullOrEmpty_Throws(string version)
        {
            var exception = Assert.Throws <ArgumentException>(
                () => DnxMaker.GetRelativeAddressNupkg(id: "a", version: version));

            Assert.Equal("version", exception.ParamName);
            Assert.StartsWith("The argument must not be null or empty.", exception.Message);
        }