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
49
49
Verify (Method (ArduinoFake (), analogRead).Using (4 )).Once ();
50
50
}
51
51
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
+
52
61
void test_yield (void )
53
62
{
54
63
When (Method (ArduinoFake (), yield)).AlwaysReturn ();
@@ -188,6 +197,7 @@ namespace FunctionTest
188
197
RUN_TEST (FunctionTest::test_pin_mode);
189
198
RUN_TEST (FunctionTest::test_digital_pin);
190
199
RUN_TEST (FunctionTest::test_analog_pin);
200
+ RUN_TEST (FunctionTest::test_analog_read_resolution);
191
201
RUN_TEST (FunctionTest::test_delay);
192
202
RUN_TEST (FunctionTest::test_detach);
193
203
RUN_TEST (FunctionTest::test_attach);
You can’t perform that action at this time.
0 commit comments