Exemple #1
0
        public void ShouldAlwaysMapInstallToConfiguration()
        {
            var @event = new InstallEvent
            {
                PluginVersion = ""
            };

            AssertMapsToActivity(@event, Activity.LocalConfiguration);
        }
Exemple #2
0
        public void ShouldSerializeToString()
        {
            var installEvent = new InstallEvent
            {
                PluginVersion = "SomeVersion"
            };
            const string expected =
                "{\"$type\":\"KaVE.Commons.Model.Events.VisualStudio.InstallEvent, KaVE.Commons\",\"PluginVersion\":\"SomeVersion\",\"TriggeredBy\":0}";

            JsonAssert.SerializesTo(installEvent, expected);
        }
Exemple #3
0
 private void OnInstallRequest(InstallEventArgs e)
 {
     InstallEvent?.Invoke(this, e);
 }