/* * Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using SafeExamBrowser.Client.Operations; using SafeExamBrowser.Contracts.Communication.Proxies; using SafeExamBrowser.Contracts.Logging; namespace SafeExamBrowser.Client.UnitTests.Operations { [TestClass] public class RuntimeConnectionOperationTests { private Mock logger; private Mock runtime; [TestInitialize] public void Initialize() { logger = new Mock(); runtime = new Mock(); } [TestMethod] public void TODO() { Assert.Fail(); } [TestMethod] [ExpectedException(typeof(InvalidOperationException))] public void MustNotAllowRepeating() { var sut = new RuntimeConnectionOperation(logger.Object, runtime.Object, Guid.Empty); sut.Repeat(); } } }