File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,15 @@ namespace FunctionTest
4949 Verify (Method (ArduinoFake (), analogRead).Using (4 )).Once ();
5050 }
5151
52+ void test_analog_read_resolution (void )
53+ {
54+ When (Method (ArduinoFake (), analogReadResolution)).AlwaysReturn ();
55+
56+ analogReadResolution (12 );
57+
58+ Verify (Method (ArduinoFake (), analogReadResolution).Using (12 )).Once ();
59+ }
60+
5261 void test_yield (void )
5362 {
5463 When (Method (ArduinoFake (), yield)).AlwaysReturn ();
@@ -188,6 +197,7 @@ namespace FunctionTest
188197 RUN_TEST (FunctionTest::test_pin_mode);
189198 RUN_TEST (FunctionTest::test_digital_pin);
190199 RUN_TEST (FunctionTest::test_analog_pin);
200+ RUN_TEST (FunctionTest::test_analog_read_resolution);
191201 RUN_TEST (FunctionTest::test_delay);
192202 RUN_TEST (FunctionTest::test_detach);
193203 RUN_TEST (FunctionTest::test_attach);
You can’t perform that action at this time.
0 commit comments