コード例 #1
0
 public void StartServerTest()
 {
     DummyAdbCommandLineClient commandLine = new DummyAdbCommandLineClient();
     Assert.IsFalse(commandLine.ServerStarted);
     commandLine.StartServer();
     Assert.IsTrue(commandLine.ServerStarted);
 }
コード例 #2
0
        public void GetVersionTest()
        {
            DummyAdbCommandLineClient commandLine = new DummyAdbCommandLineClient();
            commandLine.Version = new Version(1, 0, 32);

            Assert.AreEqual(new Version(1, 0, 32), commandLine.GetVersion());
        }
コード例 #3
0
        public void GetOutdatedVersionTest()
        {
            DummyAdbCommandLineClient commandLine = new DummyAdbCommandLineClient();
            commandLine.Version = new Version(1, 0, 1);

            commandLine.GetVersion();
        }
コード例 #4
0
ファイル: AdbServerTests.cs プロジェクト: vebin/madb
        public void Initialize()
        {
            Factories.Reset();

            this.socket = new DummyAdbSocket();
            Factories.AdbSocketFactory = (endPoint) => this.socket;

            this.commandLineClient = new DummyAdbCommandLineClient();
            Factories.AdbCommandLineClientFactory = (version) => this.commandLineClient;
        }
コード例 #5
0
 public void GetVersionNullTest()
 {
     DummyAdbCommandLineClient commandLine = new DummyAdbCommandLineClient();
     commandLine.Version = null;
     commandLine.GetVersion();
 }