Exemplo n.º 1
0
        public void ensureReadyFails()
        {
            AlgorithmImpl alg = new AlgorithmImpl();

            alg.setInputValue(Input.valueOf("one", "range"), "1");
            Action action = () => alg.ready();

            Assert.Throws <ArgumentNullException>(action);
        }
Exemplo n.º 2
0
        public void ensureReadySucceeds()
        {
            Input         input1 = Input.valueOf("one", "number 1");
            Input         input2 = Input.valueOf("two", "number 2");
            AlgorithmImpl alg    = new AlgorithmImpl();
            Dictionary <Input, string> inputValues = new Dictionary <Input, string>();

            inputValues.Add(input1, "1");
            inputValues.Add(input2, "2");
            alg.setInputValues(inputValues);
            alg.ready();
            //this method does not need an assert
        }