package com.nthportal.shell

import org.scalatest.{FlatSpec, Matchers}

class DefaultCommandTest extends FlatSpec with Matchers {
  behavior of "Default Command"

  it should "return `None` for `description` and `help` methods" in {
    val c = new Command {
      override val name: String = "something"

      override def execute(args: ImmutableSeq[String])(implicit sink: OutputSink): Unit = {}
    }

    c.description should be(None)
    c.help(Nil) should be(None)
    c.help(List(c.name)) should be(None)
    c.help(List("a", "list", "of", "sorts")) should be(None)
  }
}

Add test for default Command impl
Add test for default Command impl
