Beispiel #1
0
        public void TestConstructor_SetsId()
        {
            const ChoiceType id = ChoiceType.Gce;
            var objectUnderTest = new GoogleCloudExtension.PublishDialog.Steps.Choice.Choice(id, null, null, null, null);

            Assert.AreEqual(id, objectUnderTest.Id);
        }
Beispiel #2
0
        public void TestConstructor_SetsCommand()
        {
            var command = Mock.Of <ICommand>();

            var objectUnderTest =
                new GoogleCloudExtension.PublishDialog.Steps.Choice.Choice(ChoiceType.None, null, null, null, command);

            Assert.AreEqual(command, objectUnderTest.Command);
        }
Beispiel #3
0
        public void TestConstructor_SetsIcon()
        {
            var icon = new BitmapImage();

            var objectUnderTest =
                new GoogleCloudExtension.PublishDialog.Steps.Choice.Choice(ChoiceType.None, null, null, icon, null);

            Assert.AreEqual(icon, objectUnderTest.Icon);
        }
Beispiel #4
0
        public void TestConstructor_SetsToolTip()
        {
            const string toolTip = "Test ToolTip";

            var objectUnderTest =
                new GoogleCloudExtension.PublishDialog.Steps.Choice.Choice(ChoiceType.None, null, toolTip, null, null);

            Assert.AreEqual(toolTip, objectUnderTest.ToolTip);
        }
Beispiel #5
0
        public void TestConstructor_SetsName()
        {
            const string name = "Test Name";

            var objectUnderTest =
                new GoogleCloudExtension.PublishDialog.Steps.Choice.Choice(ChoiceType.None, name, null, null, null);

            Assert.AreEqual(name, objectUnderTest.Name);
        }