コード例 #1
0
ファイル: FunctionManagerTests.cs プロジェクト: zmoon111/kudu
        public void FunctionIsDisabled_ReturnsExpectedResult(bool?disabledValue, bool?excludedValue, bool expected)
        {
            JObject functionConfig = new JObject();

            if (disabledValue.HasValue)
            {
                functionConfig.Add("disabled", disabledValue.Value);
            }
            if (excludedValue.HasValue)
            {
                functionConfig.Add("excluded", excludedValue.Value);
            }
            Assert.Equal(expected, FunctionManager.FunctionIsDisabled(functionConfig));
        }