mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
MeteringInteractor
tests (wip)
This commit is contained in:
parent
e631dd7d55
commit
5672440837
1 changed files with 18 additions and 15 deletions
|
@ -105,11 +105,12 @@ void main() {
|
||||||
verify(() => mockUserPreferencesService.iso).called(1);
|
verify(() => mockUserPreferencesService.iso).called(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
// test('iso - set', () async {
|
test('iso - set', () async {
|
||||||
// when(() => mockUserPreferencesService.iso = IsoValue.values.first);
|
when(() => mockUserPreferencesService.iso = IsoValue.values.first)
|
||||||
// interactor.iso = IsoValue.values.first;
|
.thenReturn(IsoValue.values.first);
|
||||||
// verify(() => mockUserPreferencesService.iso = IsoValue.values.first).called(1);
|
interactor.iso = IsoValue.values.first;
|
||||||
// });
|
verify(() => mockUserPreferencesService.iso = IsoValue.values.first).called(1);
|
||||||
|
});
|
||||||
|
|
||||||
test('ndFilter - get', () async {
|
test('ndFilter - get', () async {
|
||||||
when(() => mockUserPreferencesService.ndFilter).thenReturn(NdValue.values.first);
|
when(() => mockUserPreferencesService.ndFilter).thenReturn(NdValue.values.first);
|
||||||
|
@ -117,11 +118,12 @@ void main() {
|
||||||
verify(() => mockUserPreferencesService.ndFilter).called(1);
|
verify(() => mockUserPreferencesService.ndFilter).called(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
// test('ndFilter - set', () async {
|
test('ndFilter - set', () async {
|
||||||
// when(() => mockUserPreferencesService.ndFilter = NdValue.values.first);
|
when(() => mockUserPreferencesService.ndFilter = NdValue.values.first)
|
||||||
// interactor.ndFilter = NdValue.values.first;
|
.thenReturn(NdValue.values.first);
|
||||||
// verify(() => mockUserPreferencesService.ndFilter = NdValue.values.first).called(1);
|
interactor.ndFilter = NdValue.values.first;
|
||||||
// });
|
verify(() => mockUserPreferencesService.ndFilter = NdValue.values.first).called(1);
|
||||||
|
});
|
||||||
|
|
||||||
test('film - get', () async {
|
test('film - get', () async {
|
||||||
when(() => mockUserPreferencesService.film).thenReturn(Film.values.first);
|
when(() => mockUserPreferencesService.film).thenReturn(Film.values.first);
|
||||||
|
@ -129,11 +131,12 @@ void main() {
|
||||||
verify(() => mockUserPreferencesService.film).called(1);
|
verify(() => mockUserPreferencesService.film).called(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
// test('film - set', () async {
|
test('film - set', () async {
|
||||||
// when(() => mockUserPreferencesService.film = Film.values.first);
|
when(() => mockUserPreferencesService.film = Film.values.first)
|
||||||
// interactor.film = Film.values.first;
|
.thenReturn(Film.values.first);
|
||||||
// verify(() => mockUserPreferencesService.film = Film.values.first).called(1);
|
interactor.film = Film.values.first;
|
||||||
// });
|
verify(() => mockUserPreferencesService.film = Film.values.first).called(1);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue