source: CONFIG_DEVT/IPSLCM6.5_work_ENSEMBLES/modeles/NEMO/ext/FCM/t/Fcm/Interactive/InputGetter/GUI.t @ 5501

Last change on this file since 5501 was 5501, checked in by aclsce, 4 years ago

First import of IPSLCM6.5_work_ENSEMBLES working configuration

  • Property svn:executable set to *
File size: 766 bytes
Line 
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More qw{no_plan};
7
8main();
9
10sub main {
11    my $class = 'Fcm::Interactive::InputGetter::GUI';
12    use_ok($class);
13    test_constructor($class);
14}
15
16################################################################################
17# Tests usage of constructor
18sub test_constructor {
19    my ($class) = @_;
20    my $prefix = 'constructor';
21    my $input_getter = $class->new({
22        title   => 'title-value',
23        message => 'message-value',
24        type    => 'type-value',
25        default => 'default-value',
26        geometry => 'geometry-value',
27    });
28    isa_ok($input_getter, $class);
29    is($input_getter->get_geometry(), 'geometry-value', "$prefix: geometry");
30}
31
32# TODO: tests the invoke method
33
34__END__
Note: See TracBrowser for help on using the repository browser.